package com.jyy.prefabricated.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 学生随堂考记录表(QuizRecord)实体类
 *
 * @author makejava
 * @since 2021-10-11 14:05:42
 */
@Data
public class QuizRecordDto implements Serializable {
    private static final long serialVersionUID = 600212453339353171L;
    /**
     * id
     */
    private Long id;
    /**
     * 学生随堂考id
     */
    private Integer studentQuizId;
    /**
     * 交卷时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date testTime;
    /**
     * 得分
     */
    private Double grade;
    /**
     * 花费时间
     */
    private Integer useTime;
    /**
     * 课程包id
     */
    private Integer coursePackageId;
    /**
     * 学生id
     */
    private Integer studentId;
    /**
     * 获得学时
     */
    private Integer classHours;
    /**
     * 订单id
     */
    private Integer orderId;

    private Integer buyType;

    private Integer buyTypeNum;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private String payTime;
}
